package no.eirikb.bomberman.applet.game;

import java.io.Serializable;

/**
 *
 * @author eirikb
 */
public class BoomBrick implements Serializable {

    private int x;
    private int y;
    private int anim1;
    private int anim2;

    public BoomBrick(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }

    public int anim() {
        anim2++;
        if (anim2 == 5) {
            anim1++;
            anim2 = 0;
        }
        return anim1;
    }
}
